feat: resolve component update notification state persistence after dismissal #6032
+78
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to handle the dismissal of update notifications for components. The changes span across multiple files to integrate this feature into the existing codebase.
New Feature: Dismiss All Updates
src/frontend/src/CustomNodes/GenericNode/components/NodeStatus/index.tsx
: AddeduseUtilityStore
import and integrateddismissAll
state to conditionally render update notifications and handle component updates. [1] [2] [3] [4] [5] [6]src/frontend/src/CustomNodes/GenericNode/index.tsx
: AddeduseUtilityStore
import and integrateddismissAll
state to manage the visibility of update notifications. [1] [2] [3] [4] [5] [6]Utility Store Enhancements
src/frontend/src/stores/utilityStore.ts
: AddeddismissAll
state andsetDismissAll
method to manage the dismissal state.src/frontend/src/types/zustand/utility/index.ts
: UpdatedUtilityStoreType
to includedismissAll
andsetDismissAll
properties.Additional Integrations
src/frontend/src/components/core/appHeaderComponent/index.tsx
: AddeduseResetDismissUpdateAll
hook to reset thedismissAll
state when navigating to the flow page. [1] [2]src/frontend/src/hooks/use-reset-dismiss-update-all.ts
: Created a new hook to reset thedismissAll
state based on the current location.src/frontend/src/pages/FlowPage/components/UpdateAllComponents/index.tsx
: IntegratedsetDismissAll
to handle the dismissal of all update notifications. [1] [2] [3]